package Demo01_15;

import java.util.Arrays;

/**
 * Created by 14229 on 2020/1/16.
 */
public class Test08 {
    public static void main(String[] args) {

        int[] arr = {88,96,97,74,90,58,77,90,99};
        Arrays.sort(arr);
        double sum = 0;
        for (int i = 1; i <arr.length ; i++) {
            sum += arr[i];
        }
        System.out.println("去掉最低分后的平均分是："+(sum/(arr.length-1)));
    }
}
